<head>
<title>SportGame</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<link href="${request.contextPath}/static/css/main.css" rel="stylesheet">
<link href="${request.contextPath}/static/css/bootstrap.min.css"
	rel="stylesheet">
<link href="${request.contextPath}/static/css/select2.min.css"
	rel="stylesheet">

<script src="${request.contextPath}/static/js/jquery.min.js"
	type="text/javascript"></script>
<script type="text/javascript">
	var contextPath = '${request.contextPath}';
</script>

</head>
<body>
	<div>
		<div class="main-panel">

			<div class="row">
				<div class="col-md-12">
					<h3>SportGame</h3>
				</div>
			</div>
			<div class="row margin-top-10">
				<div class="col-md-12">
					<form id="searchForm" class="form-inline">
						<div class="form-group margin-right-5">
							<input id="getBKIndex" value="0" />
						</div>
						<div class="form-group margin-right-5">
							<button type="button"
								class="btn btn-default glyphicon glyphicon-search"
								id="getBKDataBtn">开始爬取篮球数据</button>
						</div>
					</form>
				</div>
			</div>

		</div>

	</div>
	<script src="${request.contextPath}/static/js/bootstrap.min.js"
		type="text/javascript"></script>
	<script src="${request.contextPath}/static/js/jquery.validate.min.js"
		type="text/javascript"></script>
	<script src="${request.contextPath}/static/js/select2.full.min.js"
		type="text/javascript"></script>
	<script src="${request.contextPath}/static/js/jquery.jsForm.js"
		type="text/javascript"></script>
	<script src="${request.contextPath}/static/js/system/common.js"
		type="text/javascript"></script>


	<script type="text/javascript">
		$(document).ready(function() {
			$('#getBKDataBtn').on('click', function() {
				console.log('getBKDataBtn: ' + $('#getBKIndex').val());
				jsonAjax('/getBKData?index=' + $('#getBKIndex').val(), 'GET', function(result) {
					console.log(result);
					alert('操作成功！');
				});
			});
		});
	</script>

</body>
</html>





